#ifndef CLASS_STACK_H
#define CLASS_STACK_H
namespace classStack
{
    class Stack
    {
    private:
        struct Link
        {
            void *data;
            Link *next;
            Link(void *dat, Link *nxt);
            ~Link();
        } *head;

    public:
        Stack();
        ~Stack();
        void push(void *dat);
        void *peek();
        void *pop();
    };
}
#endif // CLASS_STACK_H